#include <bits/stdc++.h>

using namespace std;
using ll = long long;

void solve() {
	ll x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;

	if (x1 == x2) {
		cout << x1 + 1 << ' ' << y1 << ' ' << x2 + 1 << ' ' << y2 << endl;
		return;
	}
	if (y1 == y2) {
		cout << x1 << ' ' << y1 + 1 << ' ' << x2 << ' ' << y2 + 1 << endl;
		return;
	}
	cout << x1 << ' ' << y2 << ' ' << x2 << ' ' << y1 << endl;

}

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	solve();
	return 0;
}